import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common';
import { AppController } from './app.controller';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';


@Module({
    imports: [
        // ServeStaticModule.forRoot({
        //     rootPath: join(__dirname, 'static'),
        //     serveRoot: '/static/js'
        // })
    ],
    controllers: [AppController]
})
export class AppModule implements NestModule {
    configure(consumer: MiddlewareConsumer) {
        // consumer.apply(ProxyMiddleware)
        //   .forRoutes({ path: "proxy/*", method: RequestMethod.GET });
    }
}


